#pragma once

#include <string>

#ifndef slLog
#define slLog Log::getInstance()
#endif

namespace SL
{
    void throwError(std::string errorMsg)
    {
        std::exception e = std::invalid_argument(errorMsg);
        std::cerr << "Error: " << e.what() << std::endl;
        throw e;
    }
}